package com.atguigu.springcloud;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author heh
 * @date 2020-04-01
 */
@SpringBootApplication
@EnableEurekaClient
@EnableConfigServer
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
        // http://localhost:12000/config-dev.yml
        
        
// 配置中心更新配置后，用此命令重新加载配置
// curl -X POST "http://localhost:12000/actuator/bus-refresh"

        
        
// 配置中心更新配置后，用此命令重新加载指定服务的配置
// curl -X POST "http://localhost:12000/actuator/bus-refresh/服务名称:port"
//例如 curl -X POST "http://localhost:12000/actuator/bus-refresh/cloud-config-client-bus:12002"

    }

}
